import Vue from 'vue'
// 引入全部样式
import 'vant/lib/index.less'
import {
  NavBar, Form, Field, Button, Image as VanImage, Tabbar, TabbarItem, Tag,
  Cell, CellGroup, Icon, Tab, Tabs, List, PullRefresh, ActionSheet, Popup, Row, Col, Badge,
  Search
  , Divider
  , Dialog
  , DatetimePicker
  , Lazyload
} from 'vant'

Vue.use(Lazyload, {
  // lazyComponent: true,
  // 懒加载图片失败，使用错误图片
  error: 'https://img1.baidu.com/it/u=1628411774,3432563221&fm=253&fmt=auto&app=138&f=JPEG?w=700&h=500'
})
Vue.use(DatetimePicker)
Vue.use(Dialog)
Vue.use(CellGroup)
Vue.use(Tag)
Vue.use(Divider)
Vue.use(Search)
Vue.use(Row)
Vue.use(Col)
Vue.use(Badge)

Vue.use(Popup)
Vue.use(ActionSheet)
Vue.use(PullRefresh)
Vue.use(List)

Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Icon)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(Tabbar)
Vue.use(TabbarItem)

Vue.use(VanImage)
Vue.use(Form)
Vue.use(Field)
Vue.use(NavBar)
Vue.use(Button)
